

<title>个人管理首页</title>

<script type="text/javascript">
	$(document).ready(function(){
	    $("#ringIn").click(function(){
	        $.post("/Member/ajaxDoPuncher",{},
	            function(data,success){
	            if(data==0){//$exit_nologon = 0;$exit_ok = 1;$exit_done = 2;$exit_fail = 3;
	                tlsalert("对不起，您尚未登录!");}else if(data==1){
	                //alert("打卡成功!");
	                mbsimajax(APP+"/Member/mb_index/","mbAjaxShow");
	                //$("#ringIn").hide();
	            }else if(data==2){
	                //
	            }else if(data==3){
	                tlsalert("操作失败，请重新打卡!");
	            }else if(data==4){
	                tlsalert("为了您的账户安全，请先进行\"帐户安全认证\"!");
	            }else{
	                tlsalert("非法操作!");
	            }
	            }
	        );
	    });
	
	
	    //-------------------------------------赠送{$Think.config.sysconfig.pointb_name}打卡ajax 操作
	    $("#getPoint").click(function(){
	        //alert("OK!");
	        $.post("/Member/ajaxDoExpoint",{},
	            function(data,success){ ///1充值成功 2打过卡 3充值失败 4未通过安全验证
	            //alert(data);
	            if(data == 0){
	                tlsalert("对不起,您尚未登录!");}else if(data == 1){
	                mbsimajax(APP+"/Member/mb_index/","mbAjaxShow");
	                //$("#getPoint").removeClass("ringIn").addClass("ringOut").attr("title","今天已经打过卡了,请明天再来。");
	            }else if(data == 2){
	            
	            }else if(data == 3){
	                tlsalert("操作失败,请重新打卡!");
	            }else if(data == 4){
	                tlsalert("为了您的账户安全，请先进行\"帐户安全认证\"!");
	            }else if(data == 5){
	                tlsalert("{$Think.config.sysconfig.pointb_name}帐户额已超过打卡上限,操作失败!");
	            }else{
	                tlsalert("非法操作!");
	            } 
	        });
	    });
	    
	    showTip("countSet");
	});
	
	
	function tlsalert(txt){
	    addDialogbox("#tlsalertbox","打卡领取",10001,302);
	    msg=txt+'<br /><br />'+
	    '<div class="tc">'+
	    '<span class="button">'+
	    '<span class="first-child">'+
	    '<button type="button" class="f12" onclick="removeDialogbox(\'#tlsalertbox\');">我知道了，返回</button>'+
	    '</span>'+
	    '</span>'+
	    '</div>';
	    $("#tlsalertbox .dialogboxContent").html(msg);
	}

</script>


<!-- 
<div class="cb container">
	<table width="100%">
	<tr>
	    <td width="100%">
	    	<iframe width="100%" height="105" class="share_self"  frameborder="0" scrolling="no" src="http://service.t.sina.com.cn/widget/WeiboShow.php?width=0&height=105&fansRow=2&ptype=1&speed=0&skin=1&isTitle=1&noborder=1&isWeibo=0&isFans=0&uid=1807097351&verifier=f583b339"></iframe>
	    </td>
	</tr>
    </table>
</div>
 -->

<!-- passed -->  <!-- 账户手机认证情况 -->
<!-- 
<eq name="user['state']" value="0">
	<div class="container">
	    <div class="tabview"><h2 class="title fl">账户安全认证</h2></div>
	    <div class="content" style="display:block;">
	        <h5 style="padding:10px 0;">您尚未通过账户安全认证，账户安全认证后：</h5>
	        <ul class="disc inside" style="margin-left:15px;">
	            <li>获得赠送<strong class="keyword">{$Think.config.sysconfig.gift_pointb}</strong>{$Think.config.sysconfig.pointb_name}，立刻参与竞拍；</li>
	            <li>每天打卡领取<strong class="keyword">{$Think.config.sysconfig.punch_pointb}</strong>{$Think.config.sysconfig.pointb_name}；</li>
	        </ul>
	        <p style="padding:10px 0;">明白了，现在去 <a class="keyword strong" onclick="mbsimajax(APP+'/Member/mb_safecount/','mbAjaxShow');" href="javascript:void(0);">账户安全认证</a>。</p>
	    </div>
	</div>
</eq>
 -->
<!-- passed end -->


<!-- #pleasePayNow -->
<!-- #pleasePayNow end -->






<!-- account -->
<div class="container">
    <div class="tabview"><h2 class="title fl">账户信息</h2></div>
    <div class="content" style="display:block;">
        <table class="chart" style="margin-bottom:10px;">
	        <tr>
		        <th width="30%">{$Think.config.sysconfig.beat_name}</th>
		        <th width="30%">{$Think.config.sysconfig.pointb_name}</th>
		        <!-- 
		        <th width="40%">优先使用</th>
		         -->
	        </tr>
	        
	        <tr>
	        <td>
	            <span class="fl">{$user.beat}</span> &nbsp;&nbsp;&nbsp;&nbsp;
	            <a href="javascript:void(0);" onclick="paycountnow();">充值</a>
	        </td>
	        
	        <td>
	            <span class="fl">{$user.pointb}</span>
	        </td>
	
			<!-- 
	        <td>
	            <span class="fl" id='priority'>
		            <eq name="user['priority']" value="1">{$Think.config.sysconfig.beat_name}</eq>  
		            <eq name="user['priority']" value="2">{$Think.config.sysconfig.pointb_name}</eq>
	            </span>
	        </td>
	         -->
	        
	        </tr>
        </table>
        
        <!-- 
        <div class="cb" style="margin-bottom:10px;">
      		  <span>优先使用：</span>
	        <select id="countSet" name="countSet" onChange="javascript:changeSetting();" class="select" jtWidth="160" jtTitle="扣点方式" jtContent="如果其中一个点数不足或者为0，则自动转换另一个。">
		        <option value="1" <eq name="user['priority']" value="1">selected="selected"</eq>>{$Think.config.sysconfig.beat_name}</option>
		        <option value="2" <eq name="user['priority']" value="2">selected="selected"</eq>>{$Think.config.sysconfig.pointb_name}</option>
            </select>
  	    </div>
         -->
         
        
   </div>
</div>
<!-- account end -->

          
   <script type="text/javascript">
        //设置虚拟币和实体币优先使用规则
        function changeSetting(){
            var cSetting = $("#countSet option:selected").attr("value");
            $.post(APP+"/Member/saveSetting",
            {"setting":cSetting},
            function(data,sucess){
                if(data=="1"){
                    addDialogbox("#saveSetting_dl","扣点方式已保存!",10001,302);
                    msg=''+
                            '<div class="tc">'+
                                '<span class="button">'+
                                    '<span class="first-child">'+
                                        '<button type="button" class="f12" onclick="saveSetting_dl_ok()">我知道了,返回</button>'+
                                    '</span>'+
                                '</span>'+
                            '</div>';
                      var priority ;
                    $("#saveSetting_dl .dialogboxContent").html(msg);
                    if(cSetting == 1){
                    	priority = "{$Think.config.sysconfig.beat_name}";
                    }else if(cSetting == 2){
                    	priority = "{$Think.config.sysconfig.pointb_name}";
                    }
                    $('#priority').html(priority);
                }
            });
        }
        
        
        function saveSetting_dl_ok(){
            removeDialogbox("#saveSetting_dl");
        }
        
   </script>
   
